//===============================================================================
//	CPlayerRevive.h
//	通知用户复活
//===============================================================================

#pragma once

#include "BaseMessage.h"

class CPlayerRevive :
	public BaseMessage
{
public:
	CPlayerRevive(uint32_t uid, uint32_t pn);
	~CPlayerRevive();

public:
	//---------------------------------------------------------------------------
	static BaseMessage* Create(uint32_t uid, uint32_t pn)
	{
		return new CPlayerRevive(uid, pn);
	}

public:
	//---------------------------------------------------------------------------
	virtual void HandleMessage(Player* pplayer) override final
	{}

public:
	//---------------------------------------------------------------------------
	void SetParameter(uint32_t srcKey, uint32_t tarKey, 
		int32_t reviveType, int32_t hp);
};

